package com.dou.mapper;

import com.dou.pojo.Department;
import com.dou.pojo.Employee;
import com.dou.pojo.login;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

/**
 * Created with IntelliJ IDEA 2021.1 x64
 *
 * @Author: 窦义超
 * @Date: 2021/07/2021/7/19/11:21
 * @Description:
 */
@Mapper
public interface EmployeeDao {

    //增加一个员工
    public void save(Employee employee);
    //查询全部的员工
    public Collection<Employee> getALL();

    //通过id查询员工
    public Employee getEmployeeById(Integer id);

    //删除一个员通过id
    public void delete(Integer id);
    //修改
    //增加一个员工
    public void update(Employee employee);

}
